using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine;
using UnityEngine.EventSystems;

namespace GameUI {
	public class ButtonChecker:MonoBehaviour, IPointerDownHandler, IPointerUpHandler {
		public void OnPointerDown(PointerEventData eventData) {
			pressed=true;
		}
		public void OnPointerUp(PointerEventData eventData) {
			pressed=false;
		}
		[HideInInspector]
		public bool pressed;
	}
}